package org.jeecg.common.modules.version.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: version
 * @Author: jeecg-boot
 * @Date:   2020-08-30
 * @Version: V1.0
 */
@Data
@TableName("version")
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="version对象", description="version")
public class Version implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;
	/**1：安卓、2：iOS*/
	@Excel(name = "1：安卓、2：iOS", width = 15)
    @ApiModelProperty(value = "1：安卓、2：iOS")
    private Integer type;
	/**版本名称*/
	@Excel(name = "版本名称", width = 15)
    @ApiModelProperty(value = "版本名称")
    private String name;
	/**版本号*/
	@Excel(name = "版本号", width = 15)
    @ApiModelProperty(value = "版本号")
    private String number;
	/**版本更新内容*/
	@Excel(name = "版本更新内容", width = 15)
    @ApiModelProperty(value = "版本更新内容")
    private String content;
	/**更新链接：vivo*/
	@Excel(name = "更新链接：vivo", width = 15)
    @ApiModelProperty(value = "更新链接：vivo")
    private String urlVivo;
	/**更新链接：oppo*/
	@Excel(name = "更新链接：oppo", width = 15)
    @ApiModelProperty(value = "更新链接：oppo")
    private String urlOppo;
	/**更新链接：mi*/
	@Excel(name = "更新链接：mi", width = 15)
    @ApiModelProperty(value = "更新链接：mi")
    private String urlMi;
	/**更新链接：huawei*/
	@Excel(name = "更新链接：huawei", width = 15)
    @ApiModelProperty(value = "更新链接：huawei")
    private String urlHuawei;
	/**更新链接：samsung*/
	@Excel(name = "更新链接：samsung", width = 15)
    @ApiModelProperty(value = "更新链接：samsung")
    private String urlSamsung;
	/**更新链接：meizu*/
	@Excel(name = "更新链接：meizu", width = 15)
    @ApiModelProperty(value = "更新链接：meizu")
    private String urlMeizu;
	/**更新链接：apple*/
	@Excel(name = "更新链接：apple", width = 15)
    @ApiModelProperty(value = "更新链接：apple")
    private String urlApple;
	/**强制升级： 0 不强制 1 强制*/
	@Excel(name = "强制升级： 0 不强制 1 强制", width = 15)
    @ApiModelProperty(value = "强制升级： 0 不强制 1 强制")
    private Integer upgrade;
	/**屏蔽隐藏：0 隐藏 1 显示*/
	@Excel(name = "屏蔽隐藏：0 隐藏 1 显示", width = 15)
    @ApiModelProperty(value = "屏蔽隐藏：0 隐藏 1 显示")
    private Integer shield;
	/**是否支付：0 不支付；1 支付*/
	@Excel(name = "是否支付：0 不支付；1 支付", width = 15)
    @ApiModelProperty(value = "是否支付：0 不支付；1 支付")
    private Integer pay;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**修改时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "修改时间")
    private Date updateTime;
}
